<template>
  <div class="main-nav-box">
    <div class="main-nav-inner-box">

      <ul class="left-nav-box">
        <li class="menu-box"
            v-for="item in dynamicRouter()" :key="item.name"
        >
          {{item.meta.title}}
        </li>
      </ul>
      <div class="right-button-box">

      </div>


    </div>
  </div>
</template>

<script>
import dynamicRouter from '@/router/dynamic-router';

export default {
  name: 'MainNav',
  methods: {
    dynamicRouter() {
      return dynamicRouter
    },

    //页面跳转
    pageJump(){

    }

  },
}

</script>

<style scoped lang="scss">
//引入公共样式表
@import "@/assets/style/businessTheme.scss";

.main-nav-box{
  width: 100%;
  height:50px;
  background-color: $page-main-color;
  box-sizing: border-box;
  padding-left: $page-content-padding-left;
  display: flex;
  justify-content: center;
  align-items: center;

  .main-nav-inner-box{
    width: $page-content-width;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .left-nav-box{
      width: 900px;
      height: 100%;
      display: flex;
      justify-content: space-between;

      .menu-box{
        height:100%;
        box-sizing: border-box;
        padding:12px;
        background-color:#FFFFFF;
      }
    }

  }

}
</style>